package top.xmj.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author 冰咖啡
 * Date:2022/12/13 13:32
 * Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Friend {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "朋友ID")
    private String friendId;

    @ApiModelProperty(value = "申请验证信息")
    private String applyMsg;

    @ApiModelProperty(value = "状态（0表示已经删除该好友,1表示互为好友，2表示已被对方删除，3表示正在添加对方，4表示对方请求添加，5被对方删了，6表示对方拒绝添加，7表示拒绝对方的添加）")
    private int status;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public Friend(String userId, String friendId,String applyMsg,int status) {
        this.userId = userId;
        this.friendId = friendId;
        this.applyMsg = applyMsg;
        this.status = status;
    }
}
